package com.shop.controller;


import com.shop.common.result.util.ResultModel;
import com.shop.service.FactoryCommodityExtendService;
import com.shop.vo.factory.SelectFactoryCommodityCommodityAndFactoryByIdVo;
import com.shop.vo.factory.SelectFactoryCommodityVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 卖家商品扩展表 前端控制器
 * </p>
 *
 * @author 靳 旺
 * @since 2021-03-17
 */
@RestController
@Api(tags = "工厂商品扩展前端控制器")
@RequestMapping("/factory-commodity-extend-do")
public class FactoryCommodityExtendController {

    @Autowired
    private FactoryCommodityExtendService factoryCommodityExtendService;

    @ApiOperation(value = "根据厂家商品id查询商品和厂家信息",notes = "靳旺")
    @PostMapping("selectFactoryCommodityCommodityAndFactoryById")
    public ResultModel selectFactoryCommodityCommodityAndFactoryById(@RequestBody SelectFactoryCommodityCommodityAndFactoryByIdVo selectFactoryCommodityCommodityAndFactoryByIdVo){
        return factoryCommodityExtendService.selectFactoryCommodityCommodityAndFactoryById(selectFactoryCommodityCommodityAndFactoryByIdVo);
    }


}
